package com.fortune.dto.in.ClientRegistered;

import com.fortune.constants.PatternConstants;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Pattern;

public class VeriPhoneDto {
    @Pattern(regexp= PatternConstants.PHONE, message="手机号格式错误")
    @ApiModelProperty(example = "新手机号")
    private String phone;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "VeriPhoneDto{" +
                "phone='" + phone + '\'' +
                '}';
    }
}
